package com.sbj.dto.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sbj.dto.jackson.CustomDecimalSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author summer
 * @version 1.0
 * @date 2024/9/13 11:54
 */
@Data
public class ShopOrderRes implements Serializable {

      private Integer id;

      private String orderNo;

      private Integer orderStatus;

      private String statusName;

      private List<ShopItemRes> items;

      private String  nickName;

      private String name;

      private String phone;

      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
      private LocalDateTime createTime;

      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
      private LocalDateTime payTime;


      private String address;

      @JsonSerialize(using = CustomDecimalSerialize.class)
      private BigDecimal totalPrice;


}
